package spbsu;

import java.util.ArrayList;

public class Group {
    private String name;
    private static int nextid = 1;
    private int id;
    private ArrayList<Subject> subjects;

    public Group (String name, ArrayList<Subject> subjects)
    {
        this.name = name;
        this.subjects = subjects;
        id = nextid++;
    }

    public int getId ()
    {
        return id;
    }

    public String getName ()
    {
        return name;
    }

    public ArrayList<Subject> getSubjects ()
    {
        return subjects;
    }
}
